package define
{
	import mx.collections.ArrayCollection;
	
	public class SlotConst
	{	
		// 01_Head	03_Shoulder	05_Chest	11_Hands	13_Legs
		public static const SLOT_01_HEAD:Object = "01_Head";
		public static const SLOT_03_SHOULDER:Object = "03_Shoulder";
		public static const SLOT_05_CHEST:Object = "05_Chest";
		public static const SLOT_11_HANDS:Object = "11_Hands";
		public static const SLOT_13_LEGS:Object = "13_Legs";
		// 08_Wrist	12_Waist	14_Feet
		public static const SLOT_08_WRIST:Object = "08_Wrist";
		public static const SLOT_12_WAIST:Object = "12_Waist";
		public static const SLOT_14_FEET:Object = "14_Feet";
		// 04_Back	02_Neck	15_Finger	15_Finger	17_Trinket	17_Trinket
		public static const SLOT_04_BACK:Object = "04_Back";
		public static const SLOT_02_NECK:Object = "02_Neck";
		public static const SLOT_15_FINGER:Object = "15_Finger";
		public static const SLOT_17_TRINKET:Object = "17_Trinket";
		// 21_MainHand	22_OffHand	23_Ranged_A	23_Ranged_B
		public static const SLOT_21_MAINHAND:Object = "21_MainHand";
		public static const SLOT_22_OFFHAND:Object = "22_OffHand";
		public static const SLOT_23_RANGED_A:Object = "23_Ranged_A";
		public static const SLOT_23_RANGED_B:Object = "23_Ranged_B";
		
		public static function getIconUrl(slot:String):String
		{
			return "../assets/icon/slots/" + slot + ".jpg";
		}
		
		public static function getSlots(slot:String):Array	
		{
			if(slot == "21_MainHand")
				return ["Main Hand", " One-Hand", "Two-Hand"];
			else if(slot == "22_OffHand")
				return ["Off Hand", "One-Hand", "Held in Off-hand"];
			else if(slot == "23_Ranged_A" || slot == "23_Ranged_B")
				return ["Ranged", "Thrown", "Relic"];
			else
				return [slot.substring(3)];
		}
	}
}